Skip to content

Sync ako/mxcli: unloadable validation feedback refused, widget keyword clash, faster page lookup; checks closing the fifth parity sweep (MDL130-131) - #2034

Merged
ako merged 34 commits into
mendixlabs:mainfrom
ako:main
Dec 3, 2026

Conversation

@ako

@ako ako commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Syncs ako/mxcli:main into upstream: 12 commits since the last sync (#2023) — a validation-feedback write that made the project unloadable, a widget keyword clash, faster page lookups, checks that close every gap of the fifth check-gap parity sweep, and the sixth sweep.

Fixes #1993, fixes #2010.

Fixes

  • Validation feedback on a primitive variable is refused. validation feedback $S/Name with $S a String passed check -p, and exec stored the attribute as the bare Name, which is no Module.Entity.Attribute: MxBuild 11.16.1 could not load the project at all. check (MDL118) and exec now refuse it, and exec refuses any feedback attribute it would store unqualified, whatever caused it.
  • widget init gives a widget whose name is a built-in keyword its own (widget init gives a generated definition a keyword that is already taken (List View Controls DropDownFilter) #1993). List View Controls' drop-down filter derived DROPDOWNFILTER, the Data grid 2 drop-down filter's keyword, and every command warned that its definition was not registered. Built-in keywords now count as taken, the widget is named LISTVIEWCONTROLSDROPDOWNFILTER, and existing projects regenerate.
  • A page or snippet is found by name from the header listing (perf(executor): findPageByName lists and decodes every page of the project; use the header listing (pagesWhereHeader) like describe does #2010). alter page, page styling and page grants decoded every page of the project for each statement; they now decode only the match, as describe does.
  • The shop example's TaskQueue view entity builds. Its OQL used status/created for System attributes named Status/Created (OQL member names are case-sensitive, CE0174), and its columns were declared unlimited over String(36)/String(200) sources (CE6770).

New checks for build errors that passed check

All eleven gaps of the fifth parity sweep, each measured on MxBuild 11.16.1, one project per case, with clean controls:

  • MDL130: list operands and downloads. add/remove of an object or list of another entity (CE0117); a union, intersect or subtract whose second list holds another entity (CE0024); a generalization is rejected too. download file of an object that is not a System.FileDocument (CE0480), and change of a list variable, which exec refuses.
  • A database retrieve sorted by an attribute the entity does not have (CE1613), including one only a specialization has.
  • MDL131: calculated attributes. On a non-persistent entity; a calculation microflow taking another entity, several parameters, or returning another type; one the script creates only later; an index on a calculated attribute (CE0083).
  • A database source constraint on a page comparing an attribute with a literal of another type (CE0161), the retrieve table applied to pages.
  • View entities. OQL reading a member the source does not have (CE0174); a column whose declared type or length does not match a script-declared or inherited source attribute (CE6770).

Check coverage

  • Sixth parity sweep, f131–f144, measured on MxBuild 11.16.1: eight gaps, of which f142 (the unloadable validation feedback above) is closed here; six already refused by check

claude and others added 30 commits December 2, 2026 06:01
…CE0117, CE0024, CE0480, CE1613)

Check-gap sweep 5, batch A (f104 f105 f108 f110 f120): each passed check -p,
and MxBuild 11.16.1 rejected the project (f120: exec refused it).

- MDL130: add / remove of an object or list of another entity to or from a
  list (CE0117); a union, intersect or subtract whose second list holds
  another entity (CE0024). The item or second list must be the first list's
  entity or a specialization of it; a generalization is rejected too.
- MDL130: download file of an object that is no System.FileDocument (CE0480).
- MDL130: change of a list variable, which exec refuses.
- A database retrieve sorted by an attribute the entity does not have,
  including one only a specialization has (CE1613).

All 20 measured cases and the five fixtures agree with mx; the new control
file builds clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
The script created the entity with `Summary … calculated by
Issue524.CALC_Summary` before creating that microflow, so exec refused it
("microflow not found"). The microflow takes the entity, so the attribute is
now added after it with `alter entity … add attribute`. The fixed script
execs and MxBuild 11.16.1 builds it clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…erals and view entity members

Check-gap sweep 5, batch B (f99 f100 f114 f117 f119 f125): f114 f117 f119
passed check -p and MxBuild 11.16.1 rejected the project; f99 f100 f125
passed check -p and exec refused them.

- MDL131: a calculated attribute on a non-persistent entity; a calculation
  microflow taking another entity, several parameters, or returning another
  type; a calculation microflow the script creates only later (walked in
  statement order, as exec runs); an index on a calculated attribute
  (CE0083).
- A database source constraint comparing an attribute with a literal of
  another type (CE0161), the retrieve's table applied on the page.
- A view entity whose OQL reads a member its source entity does not have
  (CE0174). OQL member names are case-sensitive, measured.

All measured cases and the six fixtures agree with mx and exec; the new
control file builds clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…domain

# Conflicts:
#	CHANGELOG.md
#	mdl-examples/check-gap/README.md
#	mdl/executor/validate_program.go
…urce attributes (CE6770)

A view entity column reading a source entity the same script declares, or an
attribute the source inherits, was left untyped, so check -p passed any
declared type and MxBuild 11.16.1 reported CE6770 "View Entity is out of sync
with the OQL Query.". The column's source attribute is now read from the
script's declaration (while check types the view) and through the source's
generalizations. Only the view's last declaration is judged against the
script: one a later `create or modify` restates is gone before the build.

All nine measured cases agree with mx; over the example scripts the findings
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
The view read pqt.status / pqt.created and qt.status / qt.created, but the
System.ProcessedQueueTask and System.QueuedTask attributes are Status and
Created, and OQL member names are case-sensitive: MxBuild 11.16.1 reported
CE0174 "The path 'pqt.status' does not resolve to a column or association."
With the names corrected it reported CE6770: QueueId, QueueName and
MicroflowName were declared unlimited over String(36), String(200) and
String(200) sources, and a view column must match its source's length.
The corrected statement builds clean in MxBuild 11.16.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
check: calculated attributes, calculated indexes, grid constraint literals and view entity members
shop example: fix the TaskQueue view entity's member names and lengths
List View Controls' com.mendix.widget.custom.listviewcontrols.DropDownFilter
derived DROPDOWNFILTER, the keyword of the Data grid 2 drop-down filter,
and every command warned that its definition is not registered. widget
init told project widgets apart but never counted a built-in keyword as
taken. Embedded definitions' and builder-owned keywords now seed the taken
set, the package names the widget (LISTVIEWCONTROLSDROPDOWNFILTER), the
file under the old name is removed, and the generator version is bumped
so existing projects regenerate.

Fixes #2707

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
check: type view entity columns over script-declared and inherited source attributes (CE6770)
…24rqgv

fix: widget init gives a widget whose name is a built-in keyword its own
findPageByName, used by ALTER PAGE, page styling and page grants, listed
and decoded every page of the project for each statement, and
findSnippetByName every snippet. Both now filter the document headers by
name and module and decode only the matches, as describe does; a live
page still wins over an excluded twin.

Fixes #2753

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

perf: find a page or snippet by name from the header listing
Fourteen broken-script fixtures for areas the first five sweeps did not
probe: list contains/equals across entities, aggregates over enumerations,
flow return types, navigation and menu microflows with parameters, workflow
outcomes and due dates, microflow access to a nanoflow, duplicate widget
names, validation feedback targets, association values and page arguments.
Measurements against MxBuild 11.16.1 follow with the README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
Eight gaps (check -p passes, mx check rejects): f131 f133 f135 f137 f138
f141 f142 f144. f142 writes a project MxBuild cannot load. Six are already
refused by check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…roject)

`validation feedback $S/Name` with $S a String passed check -p, and exec
stored the feedback's attribute as the bare name `Name`: there is no entity
to qualify it with. A stored attribute reference is Module.Entity.Attribute,
so MxBuild 11.16.1 could not load the project ("The text 'Name' is not a
valid AttributeIdentifier"). Check-gap sweep 6, f142.

- check (MDL118) and exec refuse validation feedback on a variable of a
  primitive type, in one message.
- exec also refuses, as a backstop, any feedback attribute it would store
  unqualified, whatever left the entity unknown.

Re-run end to end on the f142 fixture: check -p rejects it and exec refuses
it, so nothing unloadable is written. Over the 11 example scripts with
validation feedback, check and exec are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
check-gap: sixth parity sweep, f131-f144 (MxBuild 11.16.1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
fix: refuse validation feedback on a primitive variable (unloadable project)
Check-gap sweep 6, f131 f141: `contains $O in $L` with $O of another entity
than $L's, and `equals $A and $B` over lists of different entities, passed
check -p, and MxBuild 11.16.1 reported CE0024. MDL130 now applies the union
rule to both: the second operand must be the first list's entity or a
specialization of it.

All eight measured cases and both fixtures agree with mx; over the example
scripts MDL130 reports nothing new.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
callers and callees built their queries on the target or source name
alone, so with a page and a microflow both named Sales.Order_Revoke a
flow that only opens the page was a direct caller of the microflow, and
the transitive walk counted everything upstream of the page. Walk nodes
are now type and name; a name of several kinds prints one block per kind
with the callers' types, and impact adds the target type as refs does.

Fixes #2771

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

fix: callers, callees and impact tell a page from a same-named microflow
`title t (Content: 'X')` passed check and exec, and the title still showed
the page's Title: Forms$Title stores no text, and the writer has dropped
it since #1373. The reads list, the builder, describe and the syntax help
still advertised it. check now refuses Content on a title (MDL-WIDGET52
under mdl 1) with a hint to use a dynamictext heading; ALTER SET Content
or Caption on a title says the same; describe stops printing it.

Fixes #2768

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
ako and others added 4 commits December 3, 2026 00:59
…24rqgv

fix!: a page title widget takes no Content
A pluggable widget bound to an attribute that an earlier `alter entity …
add attribute` in the same script adds was refused as "not an attribute
… CE1613", so exec refused a valid script. The script context recorded
only that the entity was altered; it now records the attributes an alter
adds and the names one renames to, and the attribute index merges them.

Fixes #2764

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
check: contains and equals across entities (CE0024)
…24rqgv

fix: check knows an attribute alter entity adds earlier in the script
@ako
ako merged commit 79fbe44 into mendixlabs:main Dec 3, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants